#include<bits/stdc++.h>
using namespace std;
const int N=100010;
int n;
int a[N];
int ans;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    scanf("%d",&n);
    for(int i=0;i<n;i++){
        scanf("%d",&a[i]);
    }
    sort(a,a+n);
    ans=n;
    int k=0;
    for(int i=1;i<n;i++){
        if(a[k]<a[i]){
            ans--;
            k++;
        }
    }
    printf("%d",ans);
    return 0;
}
